package com.idealighter.game.games.blackjack.struct;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class BlackjackCardsTypeAndPoint {
  private BlackjackCardsType cardsType;

  private int point;


  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((cardsType == null) ? 0 : cardsType.hashCode());
    result = prime * result + point;
    return result;
  }


  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    BlackjackCardsTypeAndPoint other = (BlackjackCardsTypeAndPoint) obj;
    if (cardsType != other.cardsType) {
      return false;
    }
    if (point != other.point) {
      return false;
    }
    return true;
  }


}
